groundsdk 7.7.2 API
7.7.2
androidJvm
groundsdk 7.7.2 API
/
com.parrot.drone.groundsdk.value
/
IntegerRange
Integer
Range
interface
IntegerRange
Range of integers.
Members
Functions
clamp
Link copied to clipboard
open
fun
clamp
(
value
:
Int
)
:
Int
Clamps a value to this range.
contains
Link copied to clipboard
open
fun
contains
(
value
:
Int
)
:
Boolean
Tells whether this range may contain some value.
get
Lower
Link copied to clipboard
abstract
fun
getLower
(
)
:
Int
Gets lower bound.
get
Upper
Link copied to clipboard
abstract
fun
getUpper
(
)
:
Int
Gets upper bound.
of
Link copied to clipboard
@
NonNull
open
fun
of
(
lower
:
Int
,
upper
:
Int
)
:
IntegerRange
Creates an immutable
IntegerRange
.
scale
From
Link copied to clipboard
open
fun
scaleFrom
(
value
:
Int
,
@
NonNull
src
:
IntegerRange
)
:
Int
Scales a value from a given range to this range.